package com.fyqp.util;

public class PageUtil {
    public static void checkPage(BaseBean bean) {
        Integer index = bean.getPageIndex();
        Integer size = bean.getPageSize();
        if (index == null || index < 1) {
            index = 1;
        }

        if (size == null || size < 0) {
            size = 10;
        }
        bean.setPageStart((index -1) * size);
        bean.setPageSize(size);
    }
}
